## prepareOrder

`prepareOrder(address: string, order: object, instructions: object): Promise<object>`

Prepare an order transaction. The prepared transaction must subsequently be [signed](#sign) and [submitted](#submit).

### Parameters

<%- renderSchema('input/prepare-order.json') %>

### Return Value

This method returns a promise that resolves with an object with the following structure:

<aside class="notice">
All "prepare*" methods have the same return type.
</aside>

<%- renderSchema('output/prepare.json') %>

### Example

```javascript
const address = 'r9cZA1mLK5R5Am25ArfXFmqgNwjZgnfk59';

// Buy 10.10 USD (of the specified issuer) for 2.0 XRP (2000000 drops), fill or kill.
const order = <%- importFile('test/fixtures/requests/prepare-order.json') %>;
return api.prepareOrder(address, order)
  .then(prepared => {/* ... */});
```

<%- renderFixture('responses/prepare-order.json') %>
